package com.ash.bean.factory;

import org.springframework.beans.factory.FactoryBean;

import com.ash.bean.Car;

public class CarFactoryBean implements FactoryBean<Car> {

    @Override
    public Car getObject() throws Exception {
        return new Car("bwm", "深圳", 12000);
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }

}
